package com.cloudxingkong.dianyinke.Student.Utils;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.HashMap;

/**
 * Created by 云星空科技 on 2016/3/23.
 */
public class MCRBJsonUtils {
    public static HashMap<String,Integer> getJsonFromThisActivity(String json){
        HashMap<String,Integer> data=null;

        try {
            data=new HashMap<>();
            JSONObject object=new JSONObject(json);
            data.put("qbfk", (Integer) object.get("qbfk"));
            data.put("dfk", (Integer) object.get("dfk"));
            data.put("dfh", (Integer) object.get("dfh"));
            data.put("dsh", (Integer) object.get("dsh"));
            data.put("dpj", (Integer) object.get("dpj"));

            return data;

        } catch (JSONException e) {
            e.printStackTrace();
        }
        return data;
    }
}
